package com.bwie.parkdemo.adapter;

import android.support.annotation.NonNull;

import com.bwie.parkdemo.R;
import com.bwie.parkdemo.mvvm.model.entity.DepartmentUserEntity;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

public class DepartmentUserAdapter extends BaseQuickAdapter<Object,BaseViewHolder> {

    public static final int type = 4;

    public DepartmentUserAdapter() {
        super(R.layout.item_departmentuser);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, Object item) {
        DepartmentUserEntity.Values entity = (DepartmentUserEntity.Values) item;
        helper.setText(R.id.departmentuser_item_name,entity.uName);
        helper.setText(R.id.departmentuser_item_department,entity.departmentName);
    }
}
